package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="PAYERACCOUNT"
 *     
*/
public class Payeraccount implements Serializable {

    /** identifier field */
    private String payerGuid;

    /** persistent field */
    private String orgCode;

    /** nullable persistent field */
    private String payerName;

    /** nullable persistent field */
    private String payerAccount;

    /** nullable persistent field */
    private String payerBank;

    /** nullable persistent field */
    private String isDisabledFlag;

    /** nullable persistent field */
    private String createTime;

    /** nullable persistent field */
    private String payerYear;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public Payeraccount(String payerGuid, String orgCode, String payerName, String payerAccount, String payerBank, String isDisabledFlag, String createTime, String payerYear, String reserved1, String reserved2, String reserved3) {
        this.payerGuid = payerGuid;
        this.orgCode = orgCode;
        this.payerName = payerName;
        this.payerAccount = payerAccount;
        this.payerBank = payerBank;
        this.isDisabledFlag = isDisabledFlag;
        this.createTime = createTime;
        this.payerYear = payerYear;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public Payeraccount() {
    }

    /** minimal constructor */
    public Payeraccount(String payerGuid, String orgCode) {
        this.payerGuid = payerGuid;
        this.orgCode = orgCode;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="PAYER_GUID"
     *         
     */
    public String getPayerGuid() {
        return this.payerGuid;
    }

    public void setPayerGuid(String payerGuid) {
        this.payerGuid = payerGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_CODE"
     *             length="42"
     *             not-null="true"
     *         
     */
    public String getOrgCode() {
        return this.orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    /** 
     *            @hibernate.property
     *             column="PAYER_NAME"
     *             length="200"
     *         
     */
    public String getPayerName() {
        return this.payerName;
    }

    public void setPayerName(String payerName) {
        this.payerName = payerName;
    }

    /** 
     *            @hibernate.property
     *             column="PAYER_ACCOUNT"
     *             length="50"
     *         
     */
    public String getPayerAccount() {
        return this.payerAccount;
    }

    public void setPayerAccount(String payerAccount) {
        this.payerAccount = payerAccount;
    }

    /** 
     *            @hibernate.property
     *             column="PAYER_BANK"
     *             length="100"
     *         
     */
    public String getPayerBank() {
        return this.payerBank;
    }

    public void setPayerBank(String payerBank) {
        this.payerBank = payerBank;
    }

    /** 
     *            @hibernate.property
     *             column="IS_DISABLED_FLAG"
     *             length="2"
     *         
     */
    public String getIsDisabledFlag() {
        return this.isDisabledFlag;
    }

    public void setIsDisabledFlag(String isDisabledFlag) {
        this.isDisabledFlag = isDisabledFlag;
    }

    /** 
     *            @hibernate.property
     *             column="CREATE_TIME"
     *             length="14"
     *         
     */
    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /** 
     *            @hibernate.property
     *             column="PAYER_YEAR"
     *             length="4"
     *         
     */
    public String getPayerYear() {
        return this.payerYear;
    }

    public void setPayerYear(String payerYear) {
        this.payerYear = payerYear;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="150"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("payerGuid", getPayerGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof Payeraccount) ) return false;
        Payeraccount castOther = (Payeraccount) other;
        return new EqualsBuilder()
            .append(this.getPayerGuid(), castOther.getPayerGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getPayerGuid())
            .toHashCode();
    }

}
